-- GENERATED SPELL FOR [Dark Conclave Ravenguard] --


function spell0_19827(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19827', 639, 1)
end

function spell1_19827(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_19827', 6321, 1)
end

function Sorts_19827(pUnit, Event)
local choix_sorts_19827 = math.random(0, 1)
if choix_sorts_19827 == 0 then
pUnit:RegisterEvent('spell0_19827', 1, 1)
end
if choix_sorts_19827 == 1 then
pUnit:RegisterEvent('spell1_19827', 1, 1)
end
end

function mob19827_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19827', math.random(1500, 3000), 1)
end

function mob19827_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19827_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19827_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19827, 1, 'mob19827_Action')
RegisterUnitEvent(19827, 2, 'mob19827_Leave')
RegisterUnitEvent(19827, 3, 'mob19827_Kill')
RegisterUnitEvent(19827, 4, 'mob19827_Die')
